package org.example.service.impl;

import org.example.entity.MyConsult;
import org.example.mapper.MyConsultMapper;
import org.example.service.MyConsultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @ClassName MyConsultServiceImpl
 * @Description TODO
 * @Author qiuye
 * @Date 2025年08月15日 15:54
 * @Version 1.0
 */
@Service
public class MyConsultServiceImpl implements MyConsultService {
    @Autowired
    private MyConsultMapper myConsultMapper;
    @Override
    public List<MyConsult> getMyConsult(int id) {
        List<MyConsult> myConsult = myConsultMapper.getMyConsult(id);
        return myConsult;
    }

    @Override
    public int addMyConsult(MyConsult myConsult) {
        int i = myConsultMapper.addMyConsult(myConsult);
        return i;
    }

    @Override
    public int deleteMyConsult(int id) {
        int i = myConsultMapper.deleteMyConsult(id);
        return i;
    }

    @Override
    public int updateMyConsult(MyConsult myConsult) {
        int i = myConsultMapper.updateMyConsult(myConsult);
        return i;
    }
}
